import request from '@/utils/request'

// 查询种苗繁育管理列表
export function listZhongmiao(query) {
  return request({
    url: '/seedlingSys/zhongmiao/list',
    method: 'get',
    params: query
  })
}

// 查询种苗繁育管理详细
export function getZhongmiao(zhongMiaoID) {
  return request({
    url: '/seedlingSys/zhongmiao/' + zhongMiaoID,
    method: 'get'
  })
}

// 新增种苗繁育管理
export function addZhongmiao(data) {
  return request({
    url: '/seedlingSys/zhongmiao',
    method: 'post',
    data: data
  })
}

// 修改种苗繁育管理
export function updateZhongmiao(data) {
  return request({
    url: '/seedlingSys/zhongmiao',
    method: 'put',
    data: data
  })
}

// 删除种苗繁育管理
export function delZhongmiao(zhongMiaoID) {
  return request({
    url: '/seedlingSys/zhongmiao/' + zhongMiaoID,
    method: 'delete'
  })
}
